package com.bishi;

import java.util.Scanner;

/**
 * 判断回文数
 */
public class yidong {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        String s = String.valueOf(n);
        boolean result = check(s);
        if(result){
            System.out.println("true");
        } else {
            System.out.println("false");
        }
    }

    public static boolean check(String s){
        int n = s.length();
        for(int i = 0, j = n-1; i < j; i++,j--){
            if(s.charAt(i) != s.charAt(j)){
                return false;
            }
        }
        return true;
    }
}
